package p;
class Test<T> {
    enum TEST {
        FIRST, SECOND;
        int n() {
            return 0;
        }
    }
    void m(){
        Object object = TEST.FIRST;
        TEST test = (TEST) object;
        int i = test.n();
    }
}
